package org.example.stockdemo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.*;

import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@EqualsAndHashCode
@ToString
public class StockDetail {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String code;

    private LocalDate createdAt;

    private String name;
    //当前价格
    private Double price;
    // 主力净流入
    private Double mainNetIn;
    //昨收价
    private Double yesterdayPrice;
    //今开价
    private Double startPrice;
    //最高价
    private Double highPrice;
    //最低价
    private Double lowPrice;
    //涨跌额
    private Double changeValue;
    //涨跌幅(%)
    private Double changePercent;
    //成交量(手)
    private Double volume;
    //成交额(万元)
    private Double amount;
    //市值
    private String marketValue;

    private LocalDateTime updatedAt;
}